package com.dahua.beanfactorypostprocessor;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor;

/**
 * @author chen_MingLiang
 * @version 1.0
 * @date 2020/1/31 18:13
 */
public class P implements InstantiationAwareBeanPostProcessor {
	@Override
	public boolean postProcessAfterInstantiation(Object bean, String beanName) throws BeansException {
		//控制某个类不需要属性填充
		if (beanName == "xxx"){
			return false;
		}
		return true;
	}
}
